package com.company.cloud.user.modules.api.request;

import com.company.cloud.common.bean.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

@Getter
@Setter
public class RoleAddRequest extends BaseParam {


    @ApiModelProperty(value = "角色编号", required = true)
    @NotEmpty(message = "角色编号不能为空")
    private String code;

    @ApiModelProperty(value = "角色名称", required = true)
    @NotEmpty(message = "角色名称不能为空")
    private String name;

    @ApiModelProperty(value = "角色备注")
    private String remark;

    @ApiModelProperty(value = "权限")
    private Set<String> permissionCodes;

    @ApiModelProperty(value = "操作人用户ID")
    private Integer opUserId;

    @ApiModelProperty(value = "操作人操作IP")
    private String opIp;
}
